package com.itehima.Topic5;

import java.time.LocalDateTime;

public class Good extends SeckillTime{
    private String name; // 商品名称
    private int stock; // 商品库存
    private double price; //商品价格

    public Good(LocalDateTime start, LocalDateTime end, String name, int stock, double price) {
        super(start, end);
        this.name = name;
        this.stock = stock;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
